package org.skyui.views;

import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.SelectedTabChangeListener;

public class NavigationTabSheet extends TabSheet implements
		SelectedTabChangeListener {

	private static final long serialVersionUID = 2454864202718619653L;

	public NavigationTabSheet() {
		addListener(this);
	}

	public void selectedTabChange(SelectedTabChangeEvent event) {
		UIView tab = (UIView) getSelectedTab();
		if (tab != null)
			tab.refresh();
	}

}
